<?php require_once ('admin.php'); ?>
<?php
if (isset($_GET['i']) && isset($_GET['type'])) {
    if (isset($_POST['delete'])) {
        DealFlightBooking::DeleteBooking($_GET['i']);
        wp_redirect('manager-booking.php');
    }
    ?>

    <?php include_once ('./admin-header.php'); ?>
    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">

    <!-- Optional theme -->
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">

    <!-- Latest compiled and minified JavaScript -->
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>

    <form method="post" action="">
        <div class="alert alert-danger">
            Do your want to delete this item?
            <input type="submit" name="delete" value="Yes" class="btn btn-primary"/>    


            <a href="manager-booking.php" class="btn btn-default">No</a>
        </div>
    </form>
<?php
} else {
    wp_redirect('404.php');
}
?>
<?php include('./admin-footer.php'); ?>
